home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_06
/
8n06098a
< prev
next >
Wrap
Text File
|
1990-03-21
|
370b
|
20 lines
/*
* Function: alloc_rec
* Purpose: Allocate memory for a Database record,
* checking for an allocation error
* Parameters: None
* Return Value: Pointer to memory, or NULL on error
*/
struct record *alloc_rec(void)
{
struct record *temp;
if ((temp = malloc(sizeof(struct record))) == NULL)
return NULL;
else
return temp;
}